package server;

import com.bigdata.servlet.HttpServletWapper;

import java.util.Map;

/**
 * 应用上下文
 */
public class Content {
    /**
     * 应用部署目录
     */
    private String docBase;

    /**
     * 访问路径
     */
    private String path;

    public Content(String docBase, String path,Map<String, HttpServletWapper> servletMap) {
        this.docBase = docBase;
        this.path = path;
        this.servletMap=servletMap;
    }

    /**
     * url和servlet映射关系
     */
    private Map<String, HttpServletWapper> servletMap;

    public String getDocBase() {
        return docBase;
    }

    public void setDocBase(String docBase) {
        this.docBase = docBase;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Map<String, HttpServletWapper> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, HttpServletWapper> servletMap) {
        this.servletMap = servletMap;
    }
}
